import { defineConfig } from 'vitepress'
import nav from './config/nav'
import sidebar from './config/sidebar'
import footer from './config/footer'
import { docsSite } from '../../config/site'

export default defineConfig({
  title: 'Z-UI',
  description: 'Z-UI 是一个基于Element Plus和Vue3封装的图表组件库，主要用于快速构建数据可视化页面。',
  base: `${docsSite}/`,
  head: [
    [
      'link',
      {
        rel: 'icon',
        href: `${docsSite}/favicon.ico`
      }
    ]
  ],
  // lastUpdated: true,
  themeConfig: {
    logo: '/image/煎蛋.png',
    // siteTitle: 'v-echarts-ui',
    outline: 'deep',
    socialLinks: [
      { icon: 'github', link: 'https://gitee.com/e5dffds' }
    ],
    nav,
    sidebar,
    footer,
    search: {
      provider: 'local'
    }
  },
})
